package com.th.supcom.pds.auditprescription.client.widget;

import com.extjs.gxt.ui.client.widget.form.FieldSet;
import com.th.supcom.pds.common.client.commom.FieldPanel;

/**
 * 
 * @author Administrator 定义病人基本信息面板
 */

/**
 *
 */
public class PatientInfoPanel extends FieldSet
{
    /** 处方信息组件面板 */
    private AuditPrescripFields m_auditPrescripFields;

    public PatientInfoPanel ()
    {
        init ();
    }

    public PatientInfoPanel (final AuditPrescripFields fields)
    {
        m_auditPrescripFields = fields;
        init ();
    }

    public AuditPrescripFields getAuditPrescripFields ()
    {
        return m_auditPrescripFields;
    }

    private void init ()
    {
        setHeading ("患者基本信息");
        final FieldPanel pp = new FieldPanel ();
        pp.setLabelWidth (51);
        pp.setLabelAlian ("L");
        pp.addCol (m_auditPrescripFields.getPrescSource (), 1, null, null);
        pp.addCol (m_auditPrescripFields.getPatientId (), 1, null, null);
        pp.addCol (m_auditPrescripFields.getPatientName (), 1, null, null);
        pp.newRow ();

        pp.addCol (m_auditPrescripFields.getChargeTypeName (), 1, null, null);
        pp.addCol (m_auditPrescripFields.getWatchTimes (), 1, null, null);
        pp.addCol (m_auditPrescripFields.getDeptAdmissionDate (), 1, null, null);
        pp.newRow ();

        pp.addCol (m_auditPrescripFields.getDeptAdmissionName (), 1, null, null);
        pp.addCol (m_auditPrescripFields.getDeptAdmissionDays (), 1, null, null);
        pp.addCol (m_auditPrescripFields.getBedNo (), 1, null, null);
        pp.newRow ();

        add (pp);

    }

    public void setAuditPrescripFields (final AuditPrescripFields auditPrescripFields)
    {
        m_auditPrescripFields = auditPrescripFields;
    }
}
